//
//  DataConvertiable.swift
//  JLDiaryApp
//
//  Created by Jiang Chencheng on 2024/9/28.
//

import Foundation

typealias DataConvertible = DataEncodable & DataDecodable

protocol DataEncodable {
    func toData() throws -> Data
}

protocol DataDecodable {
    init(data: Data) throws
}
